<%= error_messages_for 'exam' %>

<!--[form:exam]-->
<p><label for="exam_title">Title</label><br/>
<%= text_field 'exam', 'title'  %></p>
<p>
<div id="exam_grades" style="display:none;">
	1 - &gt; <%= text_field 'exam', 'percent_1', :size => 2 %>%<br/>
	2 - &gt; <%= text_field 'exam', 'percent_2', :size => 2 %>%<br/>
	3 - &gt; <%= text_field 'exam', 'percent_3', :size => 2 %>%<br/>
	4 - &gt; <%= text_field 'exam', 'percent_4', :size => 2 %>%<br/>
</div>
<a href="#" onClick="js:new Effect.Appear('exam_grades');">show grades</a> - 
<a href="#" onClick="js:new Effect.Fade('exam_grades');">hide grades</a>
</p>
<!--[eoform:exam]-->
<%= render :partial => 'question' %>